%% @author oberfreak
%% @doc @todo Add description to listener_worker.


-module(listener_worker).

%% ====================================================================
%% API functions
%% ====================================================================
-export([listen/0]).

listen() ->
	X = io:get_line(''),
	Trimmed = string:strip(X, right, $\n),
	file:write_file("log.txt",X, [append]),
	Trimmed.


%% ====================================================================
%% Internal functions
%% ====================================================================


